home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / fax / src / port / linux / defs next >
Text File  |  1994-08-01  |  9KB  |  324 lines

  1. #    $Header: /usr/people/sam/fax/port/linux/RCS/defs,v 1.7 1994/03/29 01:06:41 sam Rel $
  2. #
  3. # FlexFAX Facsimile Software
  4. #
  5. # Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994 Sam Leffler
  6. # Copyright (c) 1991, 1992, 1993, 1994 Silicon Graphics, Inc.
  7. # Permission to use, copy, modify, distribute, and sell this software and 
  8. # its documentation for any purpose is hereby granted without fee, provided
  9. # that (i) the above copyright notices and this permission notice appear in
  10. # all copies of the software and related documentation, and (ii) the names of
  11. # Sam Leffler and Silicon Graphics may not be used in any advertising or
  12. # publicity relating to the software without the specific, prior written
  13. # permission of Sam Leffler and Silicon Graphics.
  14. # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
  15. # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
  16. # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
  17. # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
  18. # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
  19. # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  20. # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
  21. # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
  22. # OF THIS SOFTWARE.
  23. #
  24.  
  25. #
  26. # These definitions are for building the software on a 386 under
  27. # linux 99p9 using gcc 2.3.3 and libg++-2.3
  28. #
  29. # TARGET:    linux
  30. # COMPILER:    gcc
  31. #
  32. SHELL    = /bin/sh
  33. DESTDIR    = .
  34. NULL    =
  35. MAKEFILE= Makefile
  36.  
  37. #
  38. # Location of auxiliary stuff needed
  39. #
  40. PORT    = ${DEPTH}/port/linux
  41. BSDI    = ${DEPTH}/port/bsdi
  42. GENERIC    = ${DEPTH}/port/generic
  43. #
  44. # Basic tools used in the build process.
  45. #
  46.  
  47. C++    = /usr/bin/g++
  48. CC    = /usr/bin/gcc
  49. NAWK    = /usr/bin/awk
  50. INSTALL    = ${PORT}/install.sh
  51. MKDEPEND= ${PORT}/mkdepend
  52. AR    = /usr/bin/ar
  53. RANLIB    = /usr/bin/ranlib
  54. SED    = /usr/bin/sed
  55.  
  56. #
  57. # AR options for creating/updating an archive
  58. #
  59. AROPTS=    crl
  60.  
  61. #
  62. # Special options for lptops compilation (yech).
  63. #
  64. LPTOPSLCOPTS=
  65.  
  66. #
  67. # linux execs getty to do the work.
  68. #
  69. SYSGETTY=GettySysV.c++
  70.  
  71. #
  72. # linux wants BSD-style UUCP lock support.
  73. #
  74. UUCP_LOCKDIR=/usr/spool/uucp
  75. UUCP_LOCKTYPE=0
  76. UUCP_LOCKMODE=0444
  77.  
  78. #
  79. # linux wants CLOCAL bit enabled on tty.
  80. #
  81. TTY_CLOCAL=CLOCAL
  82.  
  83. #
  84. # Location of Adobe Font Metrics for lptops.
  85. #
  86. AFMDIR=/usr/local/lib/afm
  87.  
  88. #
  89. # PostScript imager for server.  PSPACKAGE is one of:
  90. #
  91. # dps    for Display Postscript
  92. # gs    for Ghostscript
  93. #
  94. # and PSIMAGER is the pathname of the binary executable.
  95. #
  96. PSPACKAGE=gs
  97. PSIMAGER=/usr/local/bin/gs
  98.  
  99. #
  100. # Mail program sending notification messages.
  101. #
  102. SENDMAIL=/usr/lib/sendmail
  103.  
  104. #
  105. # Default optimizer and prototype options
  106. #
  107. OPTIMIZER=-g
  108. #PROTOTYPES=-prototypes
  109. CVERSION=-D__ANSI_CPP__
  110. GVERSION=
  111. C++FILE=-x c++
  112.  
  113. # default definitions for programs--overide them as desired
  114. LIBS=    ${LIBUTIL} ${LIBTIFF} ${LIBIV}
  115. LLDLIBS=${LIBS} ${MACHDEPLIBS}
  116. #
  117. # Override this definition to eliminate shared library use.
  118. #
  119. SHDLIBC=-lc
  120.  
  121. #
  122. # Libraries that may vary from machine to machine (especially if
  123. # you use GNU GCC instead of AT&T C++).
  124. #
  125. MACHDEPLIBS=-lg++
  126. #
  127. # You must have v3.0 or newer of the TIFF library.  If
  128. # you already have it installed, or if you have version 3.0
  129. # or newer of InterViews installed (which includes the TIFF
  130. # library), you can point these to those places.  Otherwise,
  131. # you can just use the code provided here.
  132. #
  133. TIFF=    ${DEPTH}/libtiff
  134. LIBTIFF=${TIFF}/libtiff.a
  135. #
  136. # If you already have InterViews 3.0 or newer installed,
  137. # define these to be something like:
  138. #
  139. #IV=    /usr/include
  140. #LIBIV=    /usr/lib/libIV.a
  141. # Otherwise you can just use the subset of classes used by
  142. # the fax software and collected here in a hacked-up library.
  143. #
  144. IV=    ${DEPTH}/iv
  145. LIBIV=    ${IV}/libivhack.a
  146. # random utility functions and classes
  147. UTIL=    ${DEPTH}/util
  148. LIBUTIL=${UTIL}/libfaxutil.a
  149.  
  150. #
  151. # Uid&Gid for installing server stuff.  Note that the server process
  152. # proper (/usr/etc/faxd or similar) must either run setuid root or
  153. # setuid uucp (i.e. fax and uucp must have the same uid).  This is
  154. # so that the fax server can participate in the UUCP locking scheme
  155. # and thereby implement tty line sharing (i.e. share the same line
  156. # and modem for both fax and data).
  157. #
  158. FAXUSER=uucp
  159. FAXGROUP=uucp
  160.  
  161. #
  162. # Directories where stuff gets placed:
  163. #
  164. # BIN        client-directed applications
  165. # LIBDATA    client-directed application library data files
  166. # LIBEXEC    client-directed application library executables
  167. # SPOOL        spooling area for servers
  168. # DOC        non-manual documentation
  169. # USRETC    place for servers (faxd & faxd.recv)
  170. #
  171. BIN=    /usr/local/bin
  172. LIBDATA=/usr/local/lib/fax
  173. LIBEXEC=/usr/local/lib/fax
  174. SPOOL=    /usr/spool/fax
  175. DOC=    /usr/local/doc/flexfax
  176. USRETC=    /usr/local/etc
  177. #
  178. # Manual-related controls:
  179. #
  180. # MAN        head of manual tree
  181. # MANAPP    subdirectory for stuff in BIN
  182. # MANSYS    subdirectory for server & server-related apps
  183. # MANFILES    subdirectory for file format info 
  184. #
  185. MAN    = /usr/local/man
  186. MANAPPS    = man1
  187. MANSYS    = man8
  188. MANFILES= man5
  189.  
  190. MANCAPP    = ${CLIENTAPPS}
  191. MANCFILE= ${CLIENTFILES:.4f=.5f}
  192. MANSAPP    = ${SERVERAPPS:.1m=.8c}
  193. MANSFILE= ${SERVERFILES:.4f=.5f}
  194.  
  195. .SUFFIXES: .1m .4f .5f .8c
  196. .1m.8c:; ${SED} -e 's/1M/8C/' -e 's/4F/5F/' $< > $@
  197. .4f.5f:; ${SED} -e 's/1M/8C/' -e 's/4F/5F/' $< > $@
  198.  
  199. # programs used during installation
  200. ECHO=    /usr/bin/echo
  201. GREP=    /usr/bin/grep
  202. RM=    /bin/rm
  203. PWD=    pwd
  204.  
  205. #
  206. # Definitions used by common rules.
  207. #
  208. COMMONRULES=${DEPTH}/rules
  209. COMMONTARGS= clobber clean rmtargets depend
  210. #COMMONTARGS= clobber clean rmtargets depend incdepend
  211.  
  212. #
  213. # C compiler flags are composed of variable (set on the command line),
  214. # local (defined in the makefile), and global (defined in this file)
  215. # parts, in that order.  This ordering is used so that variable or
  216. # locally specified include directories are searched before the globally
  217. # specified ones.
  218. #
  219. CFLAGS=    ${CVERSION} ${VCFLAGS} ${LCFLAGS} ${GCFLAGS}
  220.  
  221. VCFLAGS=${VCDEFS} ${VCINCS} ${VCOPTS}
  222. LCFLAGS=${LCDEFS} ${LCINCS} ${LCOPTS}
  223. GCFLAGS=${GCDEFS} ${GCINCS} ${GCOPTS}
  224.  
  225. COPTS=    ${VCOPTS} ${LCOPTS} ${GCOPTS}
  226. CDEFS=    ${VCDEFS} ${LCDEFS} ${GCDEFS}
  227. CINCS=    ${VCINCS} ${LCINCS} ${GCINCS}
  228.  
  229. GCOPTS=    ${OPTIMIZER} ${PROTOTYPES}
  230. GCDEFS=    -D__ANSI_CPP__
  231. GCINCS=    -I- -I. -I${DEPTH} -I${PORT} -I${GENERIC} -I${UTIL} -I${TIFF}
  232. #
  233. # C++ flags are decomposed using the same hierarchy as C flags.
  234. #
  235. C++FLAGS=${CVERSION} ${VC++FLAGS} ${LC++FLAGS} ${GC++FLAGS}
  236.  
  237. VC++FLAGS=${VC++DEFS} ${VC++INCS} ${VC++OPTS}
  238. LC++FLAGS=${LC++DEFS} ${LC++INCS} ${LC++OPTS}
  239. GC++FLAGS=${GC++DEFS} ${GC++INCS} ${GC++OPTS}
  240.  
  241. C++OPTS=${VC++OPTS} ${LC++OPTS} ${GC++OPTS}
  242. C++DEFS=${VC++DEFS} ${LC++DEFS} ${GC++DEFS}
  243. C++INCS=${VC++INCS} ${LC++INCS} ${GC++INCS}
  244.  
  245. GC++OPTS=${OPTIMIZER}
  246. GC++INCS=-I. -I${DEPTH} -I${PORT} -I${GENERIC} -I${UTIL} -I${IV} -I${TIFF}
  247. GC++DEFS=-D__ANSI_CPP__
  248.  
  249. #
  250. # Loader flags, composed of library (-l's) and option parts, with
  251. # the libraries appearing last.  Both of these are divided into variable,
  252. # local, and global parts.  The composition of LDFLAGS is done in the
  253. # other "direction" from CFLAGS so that all the -L's, that are part of
  254. # LDOPTS, appear before any of the -l's, which are part of LDLIBS.
  255. # Another benefit of segregating the libraries from the remaining of the
  256. # loader options is that the libraries alone can easily be given to
  257. # another program, e.g., lint.
  258. #
  259. # Notes:
  260. #   - If a program should not be linked with the shared version of libc,
  261. #     then its make file should override the setting of SHDLIBC with a
  262. #     line such as "SHDLIBC=".
  263. #
  264. LDFLAGS=${LDOPTS} ${LDLIBS}
  265.  
  266. LDOPTS=${VLDOPTS} ${LLDOPTS} ${GLDOPTS}
  267. LDLIBS=${VLDLIBS} ${LLDLIBS} ${GLDLIBS}
  268.  
  269. GLDOPTS=-L${ROOT}/usr/local/lib
  270. GLDLIBS=${SHDLIBC}
  271.  
  272. #
  273. # Convenient command macros that include the flags macros.
  274. #
  275. C++F=    ${C++} ${C++FLAGS}
  276. CCF=    ${CC} ${CFLAGS}
  277.  
  278. #
  279. # Shell script for generating make dependencies.  MKDEPEND is a shorthand
  280. # for the tool's absolute pathname.  MKDEPENDC adds MKDEPCFLAGS and the -c
  281. # mkdepend option to this.  The other language's mkdepend variables try to
  282. # include their language's name in the variable names.  Unfortunately, a
  283. # lot of makefiles already use the nondescript LMKDEPFLAGS for C language
  284. # mkdepend options, so we initialize LMKDEPCFLAGS with ${LMKDEPFLAGS}.
  285. #
  286. MKDEPENDC++    =${MKDEPEND} ${MKDEPC++FLAGS} -c "${C++F} ${C++FILE} -M"
  287. MKDEPENDC    =${MKDEPEND} ${MKDEPCFLAGS} -c "${CCF} -M"
  288.  
  289. MKDEPC++FLAGS    =${VMKDEPC++FLAGS} ${LMKDEPC++FLAGS} ${GMKDEPC++FLAGS}
  290. MKDEPCFLAGS    =${VMKDEPCFLAGS} ${LMKDEPCFLAGS} ${GMKDEPCFLAGS}
  291. LMKDEPCFLAGS    =${LMKDEPFLAGS}
  292.  
  293. GMKDEPFLAGS    =-e 's@ ${INCLDIR}/@ $${INCLDIR}/@' -e 's@ ${ROOT}/@ $${ROOT}/@'
  294. GMKDEPC++FLAGS    =${GMKDEPFLAGS} -s C++ -e 's@\.c++\.o *: @\.o: @'
  295. GMKDEPCFLAGS    =${GMKDEPFLAGS}
  296.  
  297. #
  298. # Macro to add to LMKDEPCFLAGS or LMKDEPC++FLAGS if your makefile builds
  299. # single-source programs using null suffix rules (e.g., .c:}.  This option
  300. # works for both C and C++ make depend.
  301. #
  302. NULLSUFFIX_MKDEPFLAG=-e 's@\.o+*:@:@'
  303. #
  304. # MKDEPFILE is the name of the dependency database, included by rules.
  305. #
  306. MKDEPFILE=Makedepend
  307. #
  308. # CDEPFILES lists all C or cc-compiled source files that depend on header
  309. # files computable by ${MKDEPENDC}.  C++DEPFILES lists all C++ files having
  310. # dependencies computable by ${MKDEPENDC++}.
  311. #
  312. C++DEPFILES=${C++FILES}
  313. CDEPFILES=${CFILES}
  314. DEPFILES=${C++DEPFILES} ${CDEPFILES}
  315.  
  316. #
  317. # Directory shorthands, mainly for make depend (see GMKDEPFLAGS above).
  318. #
  319. INCLDIR    =${ROOT}/usr/include
  320.